<template>
    <div style="background-color: #dbffc5">
        <span>
            作业登记
        </span>
        <el-divider></el-divider>
        <el-form ref="patentRef" :model="patentInfo" label-width="400px">
            <el-form-item label="专利名称" style="width:900px">
                <el-input v-model="patentInfo.spName"></el-input>
            </el-form-item>
            <el-form-item label="专利类型">
                <el-select v-model="patentInfo.spType" placeholder="请选择专利类型" style="width:500px">
                    <el-option label="实用性专利" value="实用性专利"></el-option>
                    <el-option label="发明专利" value="发明专利"></el-option>
                    <el-option label="外观设计专利" value="外观设计专利"></el-option>
                </el-select>
            </el-form-item>
            <el-form-item label="专利号" style="width:900px">
                <el-input v-model="patentInfo.spNumber"></el-input>
            </el-form-item>
            <el-form-item label="申请人" style="width:900px">
                <el-input v-model="patentInfo.spApplyName"></el-input>
            </el-form-item>
            <el-form-item label="发明人" style="width: 900px">
                <el-input type="textarea" v-model="patentInfo.inventor"></el-input>
            </el-form-item>
            <el-form-item label="申请日期" >
                <el-col :span="11" style="width:500px">
                    <el-date-picker type="date" placeholder="选择日期" v-model="patentInfo.applicationData"
                                    style="width: 100%;"></el-date-picker>
                </el-col>
            </el-form-item>
            <el-form-item label="地址" style="width: 900px">
                <el-input type="textarea" v-model="patentInfo.spAddress"></el-input>
            </el-form-item>
            <el-form-item label="申请日期">
                <el-date-picker style="width: 500px"
                                v-model="patentInfo.spDate"
                                type="datetimerange"
                                range-separator="至"
                                start-placeholder="开始日期"
                                end-placeholder="结束日期">
                </el-date-picker>
            </el-form-item>

            <el-form-item style="padding-left: 150px">
                <el-button type="primary" @click="onSubmit">提交申请</el-button>
                <el-button @click="backHome">取消</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
    export default {

        data() {
            return {
                patentInfo: {
                    spName: '',
                    spType: '',
                    spNumber: '',
                    spApplyName: '',
                    inventor:'',
                    applicationData:'',
                    spAddress:'',
                    fb:'作品登记'
                }
            }
        },
        methods: {
            onSubmit() {
                console.log(this.patentInfo);
            },
            backHome(){
                this.$router.push("/RegistrationOfWorks");
            }
        }
    }
</script>

<style scoped>
</style>
